package com.example.biz.impl;

import com.example.biz.IUserBiz;
import com.example.dao.UserMapper;
import com.example.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author:帅帅的刘
 * @Description:
 * @Date:Create In 2019-09-16 14:27
 **/
@Service
@Transactional
public class IUserBizImpl implements IUserBiz {

    @Autowired
    private UserMapper mapper;

    @Override
    public User findUser(String userName) {
        return mapper.findUser(userName);
    }

    @Override
    public void saveUser(User user) {
        mapper.saveUser(user);
    }
}
